class PurchaseLog:
    def __init__(self, user, page, payment_strategy, quantity, product, amount):
        self.user = user
        self.page = page
        self.payment_strategy = payment_strategy
        self.quantity = quantity
        self.product = product
        self.amount = amount

    def record(self):
        return f"{self.user} 在 {self.page} 使用 {self.payment_strategy} 购买了 {self.quantity} {self.product.quantifier}{self.product.name}，{self.payment_strategy.pay(self.amount)}"